﻿@{
    ViewBag.Title = "主页";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section Header
{
    <script type="text/javascript">
        // 焦点图片淡隐淡现
        $(document).ready(function () {

            // 焦点图片淡隐淡现
            $("#slider3").Xslider({
                affect: 'fade',
                ctag: 'div'
            });

            $("#s1").xslider({
                unitdisplayed: 4,
                movelength: 1,
                unitlen: 176,
                autoscroll: 60
            });
        })


        function siteSearch() {
            var keyword = $("#txt_searchtext").val();
            window.location.href = '/Home/Search?keyword=' + keyword;
        }
    </script>

    <style type="text/css">
        .scrolltitle {
            height: 24px;
            font-size: 14px;
            width: 742px;
            border-bottom: solid 1px #ddd;
            margin: 20px auto 15px auto;
        }

        a.abtn {
            display: block;
            height: 130px;
            width: 17px;
            overflow: hidden;
            background: url(../img/arrow3.png) no-repeat 0px 50%;
        }

        a.aleft {
            float: left;
        }

        a.agrayleft {
            cursor: default;
            background-position: -34px 50%;
        }

        a.aright {
            float: right;
            background-position: -17px 50%;
        }

        a.agrayright {
            cursor: default;
            background-position: -51px 50%;
        }

        .scrolllist {
            width: 920px;
            height: 180px;
            margin: 0 auto;
        }

            .scrolllist .imglist_w {
                width: 880px;
                height: 180px;
                overflow: hidden;
                float: left;
                position: relative; /*必要元素*/
            }

                .scrolllist .imglist_w ul {
                    width: 20000px;
                    position: absolute;
                    left: 0px;
                    top: 0px;
                    margin-left: 0px;
                }

                .scrolllist .imglist_w li {
                    width: 156px;
                    float: left;
                    padding: 0 10px;
                }

                    .scrolllist .imglist_w li img {
                        padding: 2px;
                        border: solid 1px #ddd;
                    }

                    .scrolllist .imglist_w li a {
                        color: #3366cc;
                        text-decoration: none;
                        float: left;
                    }

                        .scrolllist .imglist_w li a:hover img {
                            filter: alpha(opacity=86);
                            -moz-opacity: 0.86;
                            opacity: 0.86;
                        }

                    .scrolllist .imglist_w li p {
                        height: 48px;
                        line-height: 24px;
                        overflow: hidden;
                        float: left;
                    }
    </style>
}

<div id="mainbody">
    <div id="main_back">
        <div id="left">
            <img src="/img/weixin.gif" />
        </div>
        <div id="main_l">
            <div id="main_m">
                <div id="mainpic" height: 25px;">
                    <img src="/img/main_top.gif" />
                </div>
                <div id="main">
                    <div id="main-left">
                        <div id="slider3" class="slider">
                            <div class="conbox">
                                @{
                                    foreach (AttachmentInfo attrachment in ViewBag.PictureNews)
                                    {
                                    <div>
                                        <a href="/News/ViewNews?id=@attrachment.NewsID">
                                            <img alt="@attrachment.FileName" src="\UploadFile\@attrachment.SaveName"/>
                                        </a>
                                    </div>
                                    } 
                                }
                            </div>
                            <div class="switcher">
                                <a href="#" class="cur">1</a>
                                <a href="#">2</a>
                                <a href="#">3</a>
                                @*                    <a href="#">4</a>
                    <a href="#">5</a>*@
                            </div>
                        </div>
                    </div>
                    <div id="main-mid">
                        <div class="title">
                            <img src="/img/news.gif" />
                            <div class="more"><a href="/News/News/">更多&gt;&gt;</a></div>
                        </div>
                        <ul>

                            @{
                                IList<NewsInfo> news = ViewBag.TopNews;
                                foreach (NewsInfo item in news)
                                { 
                                <li class="newstitle">&gt;&nbsp;<a href="/News/ViewNews?id=@item.NewsID">@item.FirstPageShow</a></li>
                                <li class="newsdate">@item.AddTime.Substring(5, 5)</li>
                                }
                            }
                        </ul>
                    </div>
                    <div id="main-right">
                        <ul>
                            <li>
                                <form action="xx" method="post" name="search">
                                    <input id="txt_searchtext" name="searchtext" type="text" value="搜索" class="searchtext">
                                    <input type="button" name="Submit" onclick="siteSearch()" class="searchbutton">
                                </form>
                            </li>
                            <li><a href="/contract/about_us.html">
                                <img src="/img/rgt1.gif" border="0" /></a></li>
                            <li>
                                <div class="cu_1"></div>
                                <div class="cu_2">
                                    <p>电话：025-84716007 </p>
                                    <p>025-84718399 </p>
                                    <p>传真：025-84702477</p>
                                    <p>Email:jinding2002@163.com</p>
                                </div>
                                <div class="cu_3"></div>

                            </li>
                        </ul>
                    </div>
                    <div class="bigtitle">
                        <img src="/img/pro_img.gif" />
                        <div class="bigtitletop">
                            <img src="/img/pro_title.gif" />
                            <div class="more"><a href="/ArtWork/ArtWork/">更多&gt;&gt;</a></div>
                        </div>
                    </div>
                    <div class="bigmain">
                        <div id="bigmain_protitle">
                            <div class="scrolllist" id="s1">
                                <a class="abtn aleft" href="#left" title="左移"></a>
                                <div class="imglist_w">
                                    <ul class="imglist">
                                        @{
                                            IList<AttachmentInfo> ArtWork = ViewBag.ArtWork as List<AttachmentInfo>;
                                            foreach (AttachmentInfo item in ArtWork)
                                            {
                                            <li>
                                                <a href="/ArtWork/ViewArtWork?id=@item.NewsID">
                                                    <img width="150" height="150"  src="/UploadFile/@item.SaveName" /></a>
                                                <p><a href="/ArtWork/ViewArtWork?id=@item.NewsID">@item.FileName</a></p>
                                            </li>
                                            }
                                        }
                                    </ul>
                                    <!--imglist end-->
                                </div>
                                <a class="abtn aright" href="#right" title="右移"></a>
                            </div>
                            <!--scrolllist end-->
                        </div>
                    </div>
                    <div class="bigtitle">
                        <img src="/img/link_img.gif" />
                        <div class="bigtitletop">
                            <img src="/img/link_title.gif" />
                        </div>
                    </div>
                    <div class="bigmain">
                        <ul>
                            <li><a href="http://www.artron.net/" target="_blank">雅昌艺术网</a></li>
                            <li>
                                <img src="/img/link_list.gif" /></li>
                            <li><a href="http://www.rongbaozhai.cn/" target="_blank">荣宝斋</a></li>
                            <li>
                                <img src="/img/link_list.gif" /></li>
                            <li><a href="http://www.jsshw.cn/" target="_blank">江苏书画网</a></li>
                            <li>
                                <img src="/img/link_list.gif" /></li>
                            <li><a href="http://www.huajia.cc/" target="_blank">中国画家网</a></li>
                            <li>
                                <img src="/img/link_list.gif" /></li>
                            <li><a href="http://www.zhuokearts.com/" target="_blank">卓克艺术网</a></li>
                            <li>
                                <img src="/img/link_list.gif" /></li>
                            <li><a href="http://www.artxun.com/" target="_blank">博宝网</a></li>
                            <li>
                                <img src="/img/link_list.gif" /></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div id="right">
            <img src='/img/ritght.gif' />
        </div>
    </div>
 		<div id="footer_m">
        <div id="footer">
        <p><span>地址：江苏省南京市山西路67号世界贸易中心大厦A1幢1101室</span><span>邮编：210009 </span><span>电话：025-84716007 025-84718399</span><span> 传真：025-84702477</span></p>
<p><span>网址：http://www.jdyys.com</span><span>Email:jinding2002@163.com</span></p>
<div>苏ICP备09047781 江苏金鼎文化传播有限公司 版权所有 2009-2012
        </div>
        </div>
        </div>
</div>
